.class public Lroboguice/util/Ln$BaseConfig;
.super Ljava/lang/Object;
.source "Ln.java"

# interfaces
.implements Lroboguice/util/Ln$Config;


# instance fields
.field protected a:I

.field protected b:Ljava/lang/String;

.field protected c:Ljava/lang/String;


# direct methods
.method protected constructor <init>()V
    .locals 1

    .prologue
    .line 209
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 205
    const/4 v0, 0x2

    iput v0, p0, Lroboguice/util/Ln$BaseConfig;->a:I

    .line 206
    const-string v0, ""

    iput-object v0, p0, Lroboguice/util/Ln$BaseConfig;->b:Ljava/lang/String;

    .line 207
    const-string v0, ""

    iput-object v0, p0, Lroboguice/util/Ln$BaseConfig;->c:Ljava/lang/String;

    .line 210
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 4
    .parameter
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .prologue
    const/4 v3, 0x2

    .line 213
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 205
    iput v3, p0, Lroboguice/util/Ln$BaseConfig;->a:I

    .line 206
    const-string v0, ""

    iput-object v0, p0, Lroboguice/util/Ln$BaseConfig;->b:Ljava/lang/String;

    .line 207
    const-string v0, ""

    iput-object v0, p0, Lroboguice/util/Ln$BaseConfig;->c:Ljava/lang/String;

    .line 215
    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lroboguice/util/Ln$BaseConfig;->b:Ljava/lang/String;

    .line 216
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iget-object v1, p0, Lroboguice/util/Ln$BaseConfig;->b:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v0

    iget v0, v0, Landroid/content/pm/ApplicationInfo;->flags:I

    .line 217
    and-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_0

    move v0, v3

    :goto_0
    iput v0, p0, Lroboguice/util/Ln$BaseConfig;->a:I

    .line 218
    iget-object v0, p0, Lroboguice/util/Ln$BaseConfig;->b:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lroboguice/util/Ln$BaseConfig;->c:Ljava/lang/String;

    .line 220
    const-string v0, "Configuring Logging, minimum log level is %s"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget v3, p0, Lroboguice/util/Ln$BaseConfig;->a:I

    invoke-static {v3}, Lroboguice/util/Ln;->a(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Lroboguice/util/Ln;->b(Ljava/lang/Object;[Ljava/lang/Object;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 225
    :goto_1
    return-void

    .line 217
    :cond_0
    const/4 v0, 0x4

    goto :goto_0

    .line 222
    :catch_0
    move-exception v0

    .line 223
    iget-object v1, p0, Lroboguice/util/Ln$BaseConfig;->b:Ljava/lang/String;

    const-string v2, "Error configuring logger"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1
.end method


# virtual methods
.method public a(I)V
    .locals 0
    .parameter

    .prologue
    .line 232
    iput p1, p0, Lroboguice/util/Ln$BaseConfig;->a:I

    .line 233
    return-void
.end method
